package com.lzx.adx.report.support;

import com.lzs.adx.commmon.utils.SpringContextUtils;
import com.lzx.adx.report.constant.MediaChannelConstant;
import com.lzx.adx.report.support.strategy.mpping.*;

public class ReportMappingFactory {


    public static AbstractReportParamsMapping handler(String mediaChannel) {
        if (mediaChannel.equals(MediaChannelConstant.YOYO)) {
            return SpringContextUtils.getBean(YoYoReportMappingStrategy.class);
        } else if (mediaChannel.equals(MediaChannelConstant.SFKJ)) {
            return SpringContextUtils.getBean(SfKjReportMappingStrategy.class);

        } else if (mediaChannel.equals(MediaChannelConstant.XA_FISH)) {
            return SpringContextUtils.getBean(XaxyReportMappingStrategy.class);

        }else{
             return SpringContextUtils.getBean(CommonReportStrategy.class);
         }

    }
}
